<?php
namespace app\api\model;
use think\Model;

class Alliance extends Model
{
    protected $autoWriteTimestamp = true;
    protected $updateTime = false;
    protected $pk = 'id';
    
    // 关联联系信息
    public function fcontact() {
        return $this->hasOne('\app\api\model\Contact','id','contact')->bind(
            ['mobile', 'qq', 'email', 'lxname' => 'name',
            'position', 'address'
            ]
        );
    }
}

